package webPageElements4Testing;

import static org.testng.Assert.assertEquals;

public class TriangleImagePathTag extends BasePageElement {

	private static final String PATH_TAG_LOCATOR = "//*[@stroke and @fill and @d]";

	public TriangleImagePathTag() throws Exception {
		super();
	}

	public boolean isDisplayed() {
		return (selenium.isElementPresent(PATH_TAG_LOCATOR));
	}

	public boolean verifyCoordinatesAre(String expectedDAttributeValue) {
		String actualDAttributeValue = selenium.getAttribute(PATH_TAG_LOCATOR + "@d");
		assertEquals(actualDAttributeValue, expectedDAttributeValue);
		return true;
	}
	

}
